import { Component, OnInit, NgModule } from '@angular/core';
import { ActivatedRoute, Params} from '@angular/router';
import { ConmonService } from "../../service/common.service";
@Component({
  selector: 'app-work-deail',
  templateUrl: './work-deail.component.html',
  styleUrls: ['./work-deail.component.scss']
})
@NgModule({
  providers: [
    ConmonService
  ]
})
export class WorkDeailComponent implements OnInit {
  SubmitNo:any;
  tokenObj:any;
  dataList:any;
  constructor(private routerIonfo:ActivatedRoute,private service: ConmonService) { 
    this.SubmitNo = this.routerIonfo.snapshot.queryParams["id"];
    console.log(this.SubmitNo);
    var dataObj = {
      SubmitNo:this.SubmitNo
    };
    // this.tokenObj = service.getToken(1,dataObj,'myApplyWorkInfo',false);
    this.dataList = service.withBodyData(dataObj,"DailyWorkDetail");
  }

  ngOnInit() {
  }

}
